#coding : utf-8

"""
    Configuration of the application.
"""

# Basic configuration class
# you can change BaseConfig for all configuration class
class BaseConfig:
    SECRET_KEY = "use Chinese English to code"

# the configuration class for debugging
class DebuggingConfig(BaseConfig):
    DEBUG = True
    WTF_CSRF_ENABLED = False
    MONGODB_SETTINGS = {
            'db' : 'test',
            'host': '127.0.0.1',
            'port': 27017
            }

# the configuration class for 
class ProductionConfig(BaseConfig):
    MONGODB_SETTINGS = {
            'db' : 'test',
            'host': '127.0.0.1',
            'port': 27017
            }
    WTF_CSRF_ENABLED = True
    WTF_CSRF_SECRET_KEY = 'noonewillknowwhoIam'

# the example for self configuration
# class self(Baseconfig):
# ...

config = {
        'base' : BaseConfig,
        # 'example' : self , 
        'debug' : DebuggingConfig,
        'production' : ProductionConfig
        }